#ifndef __CONTRACT_COLUMN_TITLE_H__
#define __CONTRACT_COLUMN_TITLE_H__

#define CONTRACT_COLUMN_TITLE_TOP 0
#define CONTRACT_COLUMN_TITLE_LEFT 0
#define CONTRACT_COLUMN_TITLE_HEIGHT 50
#define CONTRACT_COLUMN_TITLE_WIDTH 1850
#define CONTRACT_COLUMN_TITLE_SPACE 0
#define CONTRACT_COLUMN_TITLE_CAPTION_WIDTH 32
#define CONTRACT_COLUMN_TITLE_FONT_SIZE 18

#include "IOptionsControl.h"
#include "GridGui.h"

class CContractColumnTitle : public virtual IContractColumnTitle
{
INIT_CLASS_PRODUCT(CContractColumnTitle)
public:
	const bool Init(const void * pvdPara, char * pszMsgTxt, int iMsgTxtSize);
	const bool SetCanvas(::HWND ptrHwndImg = NULL);
	const int ClickColumn(::HWND ptrHwndForm, int iAtX, int iAtY);
	const void ChangeSkin(bool bColorFlg = false);
	const bool Refresh();
	
private:
	const bool Draw();	
	const bool InitColumn();
	bool IsEffectiveArea(::HWND ptrHwndForm, int iAtX, int iAtY, int &iX, int &iY);
private:
	bool m_bColorFlg;
	shared_ptr<CGridGui> m_ptrCanvas;
	HWND m_HwndColumnImg;
};

#endif//__CONTRACT_COLUMN_TITLE_H__